package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 设备报警数据对象 mr_device_alarm_data
 *
 * @author lsw
 * @date 2024-01-03
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MrDeviceAlarmData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    private String id;

    /**
     * 设备地址代号_序号
     */
    @Excel(name = "设备地址代号_序号")
    private String deviceCode;

    /**
     * 显示的名称
     */
    @Excel(name = "显示的名称", width = 28)
    private String deviceName;

    /**
     * 显示的内容
     */
    @Excel(name = "显示的内容", width = 28)
    private String content;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 报警显示灯
     */
    @Excel(name = "报警显示灯")
    private String alarmDisplayLight;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private String sort;

    /**
     * 报警动作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警动作时间", width = 24, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date alarmTime;

    /**
     * 显示或报警
     */
    private String displayAlarm;


}

